<h1><%= h @post.title %></h1>

<p><em><%= nice_date @post.created_at %></em></p>



<p><%= @post.created_at.to_s %></p>
<p><%= @post.created_at.to_s(:short) %></p>
<p><%= @post.created_at.to_s(:long) %></p>
<p><%= @post.created_at.to_s(:created_at) %></p>


<% if @post.book %>
	<p><strong>Ce post concerne le livre :</strong> <%= h @post.book.title %></p>
<% end %>

<%= simple_format(@post.content) %>

<!--<%= link_to 'Voir les commentaires', post_comments_path(@post) %> |-->
<%= link_to 'Edit', edit_post_path(@post) %> |
<%= link_to 'Back', posts_path %>

<%= render_component :controller => "comments", :action => "index", :layout => false, 
										 :params => {:post_id => @post.id}
 %>
